<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #p1{
            height: 50px;
        }
    </style>
</head>
<body>
<div style="posistion:relative" id="p1">

</div>

<div style="posistion:absolute" id="p2">
    <div style="position:static" id="p3">
        <h2 style="postion:absolute;left:10px;top:10px">我的参照坐标是id=p2</h2>
    </div>
</div>


<script>
    var test={aa:12,bb:34};//或者var test={};
    var cc= "acqId"
    test[cc]=12;
    alert(test.cc)

</script>

<script>

</script>
</body>
</html>